package com.example.xyxwebbackend001.model.vo;

public class ExceptionWrapper {
    private String code;
    private String message;

    public static ExceptionWrapper getNotLogin() {
        return new ExceptionWrapper()
                .setCode("401")
                .setMessage("未登录或登录已过期");
    }

    public ExceptionWrapper() {
    }

    public ExceptionWrapper setCode(String code) {
        this.code = code;
        return this;
    }

    public ExceptionWrapper setMessage(String message) {
        this.message = message;
        return this;
    }
}
